package main

import (
	"echoDev/controllers"
	"echoDev/frans"
	"echoDev/middleware"
)

func main() {

	//无DB版本
	//frans.Fighting().
	//	Attach(middleware.NewAuthMiddleware()).
	//	Action("/v1",
	//		controllers.NewIndexController(),
	//		controllers.NewUserController(),
	//	).Running(":1323")

	//有DB版本
	frans.Fighting().
		DB(frans.NewGormAdapter()).
		Attach(middleware.NewAuthMiddleware()).
		Action("v1",
			controllers.NewIndexController(),
			controllers.NewUserController(),
		).Running(":1323")
}
